package com.example.demo.pay;

import com.example.demo.pojo.BSResult;
import com.example.demo.utils.BSResultUtils;

public  abstract  class AbstractPay implements  IPayService{

    @Override
    public BSResult pay(PayContext payContext) throws Exception {
        prepareAndPay(payContext);
        afterPay(payContext);
        return BSResultUtils.success();
    }
}
